export default ({ store, redirect, route }) => {
  if (store.$auth.$state.loggedIn) {
    if (route.name === 'login' || route.name === 'regisiter') redirect('/')
  }
}
